package com.xli.organ.role.framerole.mapper;

import com.xli.organ.role.framerole.entity.FrameRole;
import com.xli.organ.role.framerole.entity.RoleCache;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface IRoleCacheMapper {

    IRoleCacheMapper INSTANCE = Mappers.getMapper(IRoleCacheMapper.class);

    RoleCache toCacheEntity(FrameRole frameRole);

    List<RoleCache> toCacheList(List<FrameRole> frameRoleList);

    List<FrameRole> toEntityList(List<RoleCache> roleCacheList);
}
